<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});
Route::get('captcha/[:config]','\think\captcha\CaptchaController@index');
Route::get('hello/:name', 'index/hello');
Route::get('verify','index/verify');
Route::rule('abc','login/index');

//Route::rule('/', 'login/index'); // 静态地址路由
//Route::get('/', function () {
//    return 'Hello,world!';
//});

//Route::group('blog', function () {
//    Route::get(':id', 'index');
//    Route::post(':id', 'update');
//    Route::delete(':id', 'delete');
//})->prefix('help/')->pattern(['id' => '\d+']);
